<?php
switch ($strAction) {
	case 'index':
	case 'mine':
		$arrCSS = array	(
							HOST_STATICS . 'css/jquery.jscrollpane.css',
							HOST_STATICS . 'js/tooltip/tipsy.css',
							HOST_STATICS . 'css/product.css',
							
							
		);
		$arrJS 	= array (	
							HOST_STATICS . 'js/scrollbar/jquery.mousewheel.min.js',
							HOST_STATICS . 'js/scrollbar/jquery.jscrollpane.min.js',
							HOST_STATICS . 'js/tooltip/jquery.tipsy.js',
							HOST_STATICS . 'js/product/init.js'
		);		
		break;	
	case 'payment':
		$arrCSS = array	(
							HOST_STATICS . 'js/tooltip/tipsy.css',
							HOST_STATICS . 'css/product.css',
							
							
		);
		$arrJS 	= array (	
							HOST_STATICS . 'js/language/product/payment.js',
							HOST_STATICS . 'js/tooltip/jquery.tipsy.js',
							HOST_STATICS . 'js/product/payment.js'
		);
		break;
	default:
		break;
}
$objCommon 		= new Vfriend_Common();
$objVfriendUser	= new Vfriend_User();
$intTargetHexId	= $objRequest->getParam('targetid',0);
$intUserId		= $AppUI->id;
$intType		= 1;
$intTargetId	= 0;
$strTargetName	= '';
if($intTargetHexId > 0) {
	$objTarget 		= $objVfriendUser->getInfoByHexUserId($intTargetHexId);
	$intTargetId	= $objTarget->id;
	$strTargetName	= $objTarget->fullnamevn;
	
} else {
	$intFullhouseId	= $objVfriendUser->getFullhouseId($AppUI->id);
	// kiem tra xem co vo/chong ao khong de lay tai khoan chung.	
	if($AppUI->fullhouseid > 0) {
		$intUserId	= $AppUI->fullhouseid;
		$intType	= 2;
	}
}
$intVfriend		= $objVfriendUser->getAccount($intUserId,$intType);
$arrCategory	= $objCommon->getCategory(0,9,1,0);
$arrMenu		= array();
if($arrCategory) {
	foreach($arrCategory as $value) {
		$value['sub'] = $objCommon->getCategory($value['categoryid'],9,1,0);
		$arrMenu[]	  = $value;
	}
}
$this->view->arrMenu		= $arrMenu;
$this->view->intUserId		= $intUserId;
$this->view->intTargetId	= $intTargetId;
$this->view->intTargetHexId	= $intTargetHexId;
$this->view->strTargetName	= $strTargetName;
$this->view->intVfriend	 	= $intVfriend;
?>